//
//  RZRecordButton.h
//
//  Created by reyzhang on 2021/8/26.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol YMRecordButtonDelegate <NSObject>

/**
 结束倒计时代理方法
 */
- (void)ym_delegateEndCountdown;
@end


/**
 * 自定义View 视频录像按钮
 */
@interface YMRecordButton : UIButton
@property(nonatomic, weak)id<YMRecordButtonDelegate> delegate;

/**
 开始录制
 */
- (void)ym_startRecording:(void (^) (BOOL finish, BOOL isEndRecord))completion;

/**
 结束录制
 */
- (void)ym_endRecord;
@end

NS_ASSUME_NONNULL_END
